<?php
declare (strict_types=1);

namespace app\api\controller;

use app\common\model\Area as AreaModel;
use app\common\tool\Result;
use think\Response;

class Area extends Base
{
    public function index($pid = 0, $level = 0): Response
    {
        return Result::success('success', AreaModel::getArea($pid, $level));
    }
}